<?php
/**
 * Created by PhpStorm.
 * Time: 下午6:12
 */?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="utf-8">
<head>
    <title>细菌质谱详细信息</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <?php $this->load->helper('url');?>

    <link href="<?php echo base_url()?>css/bootstrap.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/bootstrap.min.js"></script>
    <link href="<?php echo base_url()?>css/bootstrap.min.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="<?php echo base_url()?>js/bootstrap.js"></script>
    <script language="JavaScript"> var base_url = '<?php echo base_url()?>'; </script>
    <style>
        /*#image {*/

        /*width: 210px;*/

        /*height: 210px;*/

        /*padding: 20px;*/

        /*}*/
        #image img{
            /*width: 1700px;*/

            height: 700px;

            padding: 0;
        }
        /*#image img:hover {*/

            /*!*width: 1700px;*!*/

            /*height: 940px;*/

            /*padding: 0;*/

        /*}*/
    </style>
</head>
<script>
    function validateForm(){
        if (window.confirm("是否确认删除")) {
            return true;
        }
        return false;
    }
</script>
<body  class=" x-border-layout-ct" style="position: relative;" >
<div class="container">

    <div class="row">
        <div class="col-md-8">
            <h1>细菌质谱分类鉴定数据库</h1>
        </div>
    </div>
</div>
<div class="container navigation">
    <div class="row">
        <div class="col-md-7">
            <ul class="nav nav-pills">
                <li class="active"><a href="<?php echo site_url()?>">首页</a></li>
                <li><a href="<?php echo site_url('c_front_bacteria/')?>">细菌质谱</a></li>
                <li><a href="<?php echo site_url('c_specimen_admin/')?>">细菌样本</a></li>
            </ul>
        </div>


    </div>

</div>

<div id="msg"></div>
<div id="main-tabs" class="container navigation" style="text-align: center;top: 0px;">

    <!-- 菜单体 -->
    <div class="x-tab-panel-bwrap border-bottom x-panel-body" >
                <div  class="x-panel-bwrap">

                            <div style="position: relative;"  class="x-panel-bwrap">

                                <!-- 工具栏 -->

                                <!-- /工具栏 -->

                                <?php //print_r($_POST["session"]);?>
                                <h4><?php echo $image['image_name']; ?>详细信息</h4>
                                <table cellpadding="3" cellspacing="0" id="listTable" class="table table-striped" style="width: 90%;" align="center">
                                    <thead>
                                    <tr class="x-grid3-header">
                                        <th class="sort-numeric " >
                                            <div class="x-grid3-hd-inner "style="text-align:center">质谱图</div></th>
                                    </tr>
                                    </thead>

                                    <tbody>
                                    <tr class="x-grid3-row " >

                                        <td><div id="image"><img src="<?php echo base_url()?><?php echo $image['image_path']; ?>" height="1500px" width="1500" alt="<?php echo $image['image_name']; ?>"/></div></td>

                                    </tr>
                                    </tbody></table>
                                <table class="table table-striped" style="width: 80%;" align="center">
                                    <thead>
                                    <tr class="x-grid3-header" style="text-align:center">
                                        <th>
                                            <div class="x-grid3-hd-inner " style="text-align:center">序号</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner " style="text-align:center">质合比</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">峰高</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">峰面积</div></th>
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">信噪比</div></th >
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">分辨率</div></th >
                                        <th>
                                            <div class="x-grid3-hd-inner" style="text-align:center">操作</div></th >

                                    </tr>
                                    </thead>
                                    <tbody>

                                    <?php
                                    foreach ($result as $key=>$value)
                                    {
                                        ?>
                                        <tr class="x-grid3-row " style="text-align:center">
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $key+1; ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $result[$key]['data_m_z'] ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $result[$key]['data_peak_height'] ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $result[$key]['data_peak_area'] ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $result[$key]['data_signal_noise_ratio'] ?></div></td>
                                            <td><div class="x-grid3-cell-inner " style="text-align:center"><?php echo $result[$key]['data_image_resolution'] ?></div></td>
                                            <td >
                                                    <ul style="list-style:none">
                                                   <li style="float:left;padding:0 5px 0 0"> <a href='<?php echo site_url('c_front_bacteria/queryByIdUpdata/'.$result[$key]['data_id'])?>' style="text-decoration:none;" alt='修改' title='修改'>

                                                        <input style="width: 55px;height: 30px;" class="btn" type=submit name="session_Prev" value="修改"/>
                                                    </a></li>
                                                    <li style="float: left"><form onsubmit="return validateForm()" method="POST" action="<?php echo site_url('c_front_bacteria/queryByIdDelete/'.$result[$key]['data_id'])?>" style="height: 0px">
                                                                <input style="width: 55px;height: 30px" class="btn" type=submit name="session_Prev" value="删除"/>
                                                    </form></li>
                                                    </ul>
                                                </td>
                                        </tr>
                                        <?php
                                    }
                                    ?>
                                    </tbody>
                                    </table>


                                    </div>

                                    <!-- /内容 -->
                            </div>

                        </div>
    <div class="x-grid3-header" style="text-align:center">
        <a href='<?php echo site_url('c_data/excel_out/'.$image['image_id'])?>' style="text-decoration:none;" alt='下载' title='下载总表'>

            <input style="width: 100px;height: 30px" class="btn" type=submit name="session_Prev" value="下载总表"/>
        </a>
    </div>
    <div>
        <tr class="x-grid3-header" style="text-align:center">

            <th>
                <a href='<?php echo site_url('c_data/excel_out_mz/'.$image['image_id'])?>' style="text-decoration:none;" alt='下载' title='下载质合比'>

                    <input style="width: 100px;height: 30px" class="btn" type=submit name="session_Prev" value="下载质合比"/>
                </a></th>
            <th>
                <a href='<?php echo site_url('c_data/excel_out_height/'.$image['image_id'])?>' style="text-decoration:none;" alt='下载' title='文件下载'>

                    <input style="width: 100px;height: 30px" class="btn" type=submit name="session_Prev" value="下载峰高"/>
                </a></th>
            <th>
                <a href='<?php echo site_url('c_data/excel_out_area/'.$image['image_id'])?>' style="text-decoration:none;" alt='下载' title='文件下载'>

                    <input style="width: 100px;height: 30px" class="btn" type=submit name="session_Prev" value="下载峰面积"/>
            </th>
            <th>
                <a href='<?php echo site_url('c_data/excel_out_ratio/'.$image['image_id'])?>' style="text-decoration:none;" alt='下载' title='文件下载'>

                    <input style="width: 100px;height: 30px" class="btn" type=submit name="session_Prev" value="下载信噪比"/>

            <th>
                <a href='<?php echo site_url('c_data/excel_out_resolution/'.$image['image_id'])?>' style="text-decoration:none" alt='下载' title='文件下载'>

                    <input style="width: 100px;height: 30px" class="btn" type=submit name="session_Prev" value="下载分辨率"/>
        </tr>
    </div>
    <br/><br/>
<!-- /菜单体 -->
</div>
</body>
</html>
